import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/stroe/index'
import ElementUI from 'element-ui'
import 'nprogress/nprogress.css'
import '@/assets/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import '@/incofont/cloudmusic/iconfont.css'
import { Download, lightKeyword, FormatTime } from '@/components/utils'

Vue.config.productionTip = false
Vue.use(ElementUI)

// 定义全局处理时间戳过滤器
Vue.filter('formatTime', FormatTime)

new Vue({
  beforeCreate() {
    Vue.prototype.$download = Download
    Vue.prototype.$light = lightKeyword
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
